Skip to content

Add overload to PowderPattern.GetOption binding to accept option name - #134

Merged
vincefn merged 2 commits into
diffpy:mainfrom
clemisch:getoption-by-name
Dec 4, 2026
Merged

vincefn merged 2 commits into
diffpy:mainfrom
clemisch:getoption-by-name

Conversation

@clemisch

@clemisch clemisch commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Needed for new objcryst RefObjOpt to deactivate unconstrained LSTSQ fit of all phase scales.

After vincefn/objcryst#111, use like

pp.GetOption("Fit Scale Factors at Beginning of Optimization").SetChoice("No")

This PR only adds a binding though, it doesn't change any options. Default behavior for the scale fit is still "Yes" to keep current behavior.

needed for new objcryst RefObjOpt to deactivate unconstrained LSTSQ fit
of all phase scales
@clemisch

Copy link
Copy Markdown
Contributor Author

Tests fail until new objcryst is pinned/used

@sbillinge

Copy link
Copy Markdown
Contributor

@clemisch is this waiting for a new objcryst release so it can pass tests and get merged? Could you let me know what you want me to do here? By default I am waiting till tests pass.

@clemisch

Copy link
Copy Markdown
Contributor Author

Yes I would wait for objcryst release and passing tests. Sorry I didn't make that clear!

@sbillinge

Copy link
Copy Markdown
Contributor

btw, is a new objcryst release pending? We want to push out the nanobound pyobjcryst as our cmi work is built on pyobjcryst. Our latest nanobound diffpy.srreal is working with the current pyobjcryst release (2026.1.0) but we would love to have it running against 2026.2.0. There is already an rc release of that was successful, so we don't need to merge this to push that out. There will be 2027.1.0 shortly with python 3.15 support too I guess and this could join that?

TL;DR: @clemisch @vincefn is it ok to move ahead with 2026.2.0 without this work?

@clemisch

clemisch commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

is it ok to move ahead with 2026.2.0 without this work?

For me it's fine! For my custom "deployment" I can install from Github anyway and not depend on the PyPI status.

@vincefn

vincefn commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Same for me, it's fine - I think a more obvious entry in the changelog should mention the new nanobind port, but other wise you can go ahead with the release.
btw, why not include python 3.15 already ?

@sbillinge

sbillinge commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

I pushed it out.

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.88%. Comparing base (0eed08c) to head (9046c3d).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
+ Coverage   98.87%   98.88%   +0.01%     
==========================================
  Files          22       22              
  Lines        2495     2522      +27     
==========================================
+ Hits         2467     2494      +27     
  Misses         28       28              
Files with missing lines Coverage Δ
tests/test_lsq.py 99.23% <100.00%> (+0.20%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@clemisch

clemisch commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor Author

I updated objcryst submodule to current HEAD febca1f193e6a1164e8ca331a683d7b04202857f, tests pass

@vincefn
vincefn merged commit d5ae35b into diffpy:main Dec 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants